﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp23_4_5
{
    /// <summary>
    /// 程序员.
    /// </summary>
    class Programer
    {
        private string[] underbrag = { "钱多", "话少", "长寿","有性福家庭" };
        public string RandomUnderbrag()
        {
            Random random = new Random();
            int num = random.Next(0, underbrag.Length);
            string words = underbrag[num];
            return words;
        }
        private string[] MyHobby = { "唱", "跳", "rap", "篮球" };
        public void SetNewHobby(string hobby)
        {
            MyHobby.Append(hobby);
        }
    }

    internal class cMethod
    {
        public static void Main(string[] args)
        {
            Programer xiaoming = new Programer();
            Console.WriteLine(xiaoming.RandomUnderbrag());
            xiaoming.SetNewHobby("嫖娼");
            Console.WriteLine(xiaoming.);
        }
    }
}










